package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.JiajiaWorkerJiedanDetail;
import com.ruoyi.system.mapper.JiajiaWorkerJiedanDetailMapper;
import com.ruoyi.system.service.IJiajiaWorkerJiedanDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 接单状态详情Service业务层处理
 * 
 * @author knd
 * @date 2021-10-19
 */
@Service
public class JiajiaWorkerJiedanDetailServiceImpl implements IJiajiaWorkerJiedanDetailService
{
    @Autowired
    private JiajiaWorkerJiedanDetailMapper jiajiaWorkerJiedanDetailMapper;

    /**
     * 查询接单状态详情
     * 
     * @param id 接单状态详情主键
     * @return 接单状态详情
     */
    @Override
    public JiajiaWorkerJiedanDetail selectJiajiaWorkerJiedanDetailById(Long id)
    {
        return jiajiaWorkerJiedanDetailMapper.selectJiajiaWorkerJiedanDetailById(id);
    }

    /**
     * 查询接单状态详情列表
     * 
     * @param jiajiaWorkerJiedanDetail 接单状态详情
     * @return 接单状态详情
     */
    @Override
    public List<JiajiaWorkerJiedanDetail> selectJiajiaWorkerJiedanDetailList(JiajiaWorkerJiedanDetail jiajiaWorkerJiedanDetail)
    {
        return jiajiaWorkerJiedanDetailMapper.selectJiajiaWorkerJiedanDetailList(jiajiaWorkerJiedanDetail);
    }

    /**
     * 新增接单状态详情
     * 
     * @param jiajiaWorkerJiedanDetail 接单状态详情
     * @return 结果
     */
    @Override
    public int insertJiajiaWorkerJiedanDetail(JiajiaWorkerJiedanDetail jiajiaWorkerJiedanDetail)
    {
        return jiajiaWorkerJiedanDetailMapper.insertJiajiaWorkerJiedanDetail(jiajiaWorkerJiedanDetail);
    }

    /**
     * 修改接单状态详情
     * 
     * @param jiajiaWorkerJiedanDetail 接单状态详情
     * @return 结果
     */
    @Override
    public int updateJiajiaWorkerJiedanDetail(JiajiaWorkerJiedanDetail jiajiaWorkerJiedanDetail)
    {
        return jiajiaWorkerJiedanDetailMapper.updateJiajiaWorkerJiedanDetail(jiajiaWorkerJiedanDetail);
    }

    /**
     * 批量删除接单状态详情
     * 
     * @param ids 需要删除的接单状态详情主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerJiedanDetailByIds(String ids)
    {
        return jiajiaWorkerJiedanDetailMapper.deleteJiajiaWorkerJiedanDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除接单状态详情信息
     * 
     * @param id 接单状态详情主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerJiedanDetailById(Long id)
    {
        return jiajiaWorkerJiedanDetailMapper.deleteJiajiaWorkerJiedanDetailById(id);
    }
}
